package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.ParentStudent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ParentStudentRepository extends JpaRepository<ParentStudent,Integer> {

    @Query(value = "select id,student_id, parent_id FROM parent_student where student_id =?1",nativeQuery = true)
    ParentStudent findByStudentId(Integer id);
}
